﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditContact.aspx.cs" Inherits="AB.ServiceDirectory.Design.AContact.EditContact01" %>

<%@ Register TagPrefix="cc1" Namespace="Vladsm.Web.UI.WebControls" Assembly="GroupRadioButton, Version=1.0.0.0, Culture=neutral, PublicKeyToken=93985c16c9bea92d" %>
<%@ Register TagPrefix="wuc" TagName="ContactLookupPopup" Src="~/WebUserControls/Lookup/ContactLookupUserControl.ascx" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <link href="../style/AnhPopup.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
    <h2>
        EDIT CONTACT</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <asp:UpdatePanel ID="UpdatePanelEditContact" runat="server">
        <ContentTemplate>
            <div class="grid740 simplebox">
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelFirstName" runat="server" CssClass="st-labeltext" Text="First Name"
                            AssociatedControlID="TextBoxFirstName">
                            <asp:RequiredFieldValidator ControlToValidate="TextBoxFirstName" ID="TextBoxFirstNameRequired"
                                runat="server" ErrorMessage="*" ForeColor="red"></asp:RequiredFieldValidator>
                        </asp:Label>
                        <asp:TextBox ID="TextBoxFirstName" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
                    </div>
                    <div class="half">
                        <asp:Label ID="LabelManageName" runat="server" Text="Manager Name" CssClass="st-labeltext"></asp:Label>
                        <asp:TextBox ID="TextBoxManagerName" runat="server" Width="170px" CssClass="st-forminput  st-disable"></asp:TextBox>
                        <asp:LinkButton ID="LinkButtonLookup" runat="server" OnClick="LinkButtonLookup_Click">Lookup
                        </asp:LinkButton>
                        <asp:HiddenField ID="HiddenFieldContactID" runat="server" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelSurname" runat="server" Text="SurName" CssClass="st-labeltext">
                            <asp:RequiredFieldValidator ControlToValidate="TextBoxSurName" ID="RequiredFieldValidator1"
                                runat="server" ErrorMessage="*" ForeColor="red"></asp:RequiredFieldValidator>
                        </asp:Label>
                        <asp:TextBox ID="TextBoxSurname" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
                    </div>
                    <div class="half">
                        <asp:Label ID="LabelContactType" runat="server" Text="Contact Type" CssClass="st-labeltext">
                            <asp:RequiredFieldValidator ID="RequiredContactType" runat="server" ErrorMessage="*"
                                ControlToValidate="DropDownListContactType" />
                        </asp:Label><asp:DropDownList ID="DropDownListContactType" CssClass="level1-5" runat="server">
                        </asp:DropDownList>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelKnowAs" runat="server" Text="Know As" CssClass="st-labeltext"></asp:Label><asp:TextBox
                            ID="TextBoxKnowAs" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div><div class="half">
                        <asp:Label ID="LabelBestContact" runat="server" Text="Best Contact Method" CssClass="st-labeltext"></asp:Label><asp:DropDownList
                            ID="DropDownListBestMethod" CssClass="level2" runat="server">
                        </asp:DropDownList>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelOffice" runat="server" Text="Office Phone" CssClass="st-labeltext"></asp:Label><asp:TextBox
                            ID="TextBoxOfficePhone" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div><div class="half">
                        <asp:Label ID="LabelJobRole" runat="server" Text="Rob Role" CssClass="st-labeltext"></asp:Label><asp:TextBox
                            ID="TextBoxJobRole" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelMobilePhone" runat="server" Text="Mobile Phone" CssClass="st-labeltext"></asp:Label><asp:TextBox
                            ID="TextBoxMobilePhone" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div><div class="half">
                        <asp:Label ID="LabelWorkBase" runat="server" Text="WorkBase" CssClass="st-labeltext"></asp:Label><asp:TextBox
                            ID="TextBoxWorkBase" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelHomePhone" runat="server" Text="ST Home Phone" CssClass="st-labeltext"></asp:Label><asp:TextBox
                            ID="TextBoxHomePhone" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div><div class="half">
                        <asp:Label ID="LabelJobTitle" runat="server" Text="Job Title" CssClass="st-labeltext"></asp:Label><asp:TextBox
                            ID="TextBoxJobTitle" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelEmailAddress" runat="server" Text="Email Address" CssClass="st-labeltext"></asp:Label><asp:TextBox
                            ID="TextBoxEmailAddress" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div><div class="half">
                        <asp:Label ID="LabelIsActive" runat="server" Text="Is Active ?" CssClass="st-labeltext"></asp:Label><asp:CheckBox
                            ID="CheckBoxIsActive" runat="server" /></div>
                    <div class="clear">
                    </div>
                </div>
                <div class="button-box">
                    <asp:Button ID="ButtonSave" CssClass="st-button" runat="server" Text="Save" OnClick="ButtonSave_Click" />
                    <asp:Button ID="ButtonBack" CssClass="st-clear" runat="server" Text="Back" CausesValidation="False"
                        OnClick="ButtonBack_Click" />
                </div>
            </div>
            <wuc:ContactLookupPopup ID="ContactLookup" runat="server" MaximumRows="5" HiddenFieldResultID="HiddenFieldContactID" TextBoxResultID ="TextBoxManagerName" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
